<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="pageContent">
	<form method="post" action="${base}/core/groupinfo/save.do" class="pageForm required-validate" onsubmit="return validateCallback(this, ${targetType}AjaxDone);">
	<!-- 来源页面，提交后刷新此页面 -->
	<input type="hidden" name="targetType" value="${targetType}">
	<input type="hidden" name="targetId" value="${targetId}">
	<c:if test="${entity.id!=null}">
	 <input type="hidden" name="id"  value="${entity.id}"/> 
	 <input type="hidden"  name="timestamp"  value="${entity.timestamp}"/> 
	 </c:if>
	  
		<div class="pageFormContent" layoutH="56">
		
		    <p>
				<label> 组织机构类型：</label>
				<w:codeselect type="grouptype" value="${entity.groupType}"  name="groupType"></w:codeselect>
			</p>
			
			<p>
				<label>上级组织名称：</label>
			 <input type="hidden" name="parent.id" value="${entity.parent.id }">
			 <input name="parent.groupName" type="text" value="${entity.parent.groupName}" />
			 <a class="btnLook" href="${base}/core/groupinfo/list.do?targetType=dialog"  lookupGroup="parent">查找</a>
			</p>
	
			<p>
				<label>组织机构名称：</label>
				<input name="groupName"  type="text" size="20"  class="required"  value="${entity.groupName}"/>
			</p>
			
			<p>
				<label>说明：</label>
				<input name="groupInfo"  type="text" size="20" value="${entity.groupInfo}"/>
			</p>
  
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
